<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <!--组件-->
    <gao v-for="g in items" v-bind:gg="g"></gao>
</div>

<!--导入Vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script>

    Vue.component("gao",{
        props: ['gg'],
        template: '<li>{{gg}}</li>'
    });

    var app = new Vue({
        el: '#app',
        data: {
            items: ["Java","Layui","Vue"]
        }
    });
</script>

</body>
</html>